package com.kameiqi.erp.domain.model;
import cn.qqxkj.core.common.base.BaseModel;
import cn.qqxkj.core.annotation.agile.Page;
import cn.qqxkj.core.annotation.agile.PageField;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.lang.String;

/**
 * 财务子表实体类
 * @author 小六子
 * @date 2022-04-23 15:17:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Table(name = "jsh_account_item")
@Entity
@Page(cover = true)
@ApiModel("财务子表")
public class AccountItem extends BaseModel{
    /** 表头Id */
    @ApiModelProperty(value="表头Id")
    @Column(nullable=false)
    @PageField(required=true)
    private Long headerId;

    /** 账户Id */
    @ApiModelProperty(value="账户Id")
    private Long accountId;

    /** 收支项目Id */
    @ApiModelProperty(value="收支项目Id")
    private Long inOutItemId;

    /** 单据id */
    @ApiModelProperty(value="单据id")
    private Long billId;

    /** 应收欠款 */
    @ApiModelProperty(value="应收欠款")
    @Column(scale=6)
    @PageField(dataScale=6)
    private BigDecimal needDebt;

    /** 已收欠款 */
    @ApiModelProperty(value="已收欠款")
    @Column(scale=6)
    @PageField(dataScale=6)
    private BigDecimal finishDebt;

    /** 单项金额 */
    @ApiModelProperty(value="单项金额")
    @Column(scale=6)
    @PageField(dataScale=6)
    private BigDecimal eachAmount;

    /** 单据备注 */
    @ApiModelProperty(value="单据备注")
    private String remark;

    /** 租户id */
    @ApiModelProperty(value="租户id")
    private Long tenantId;

    /** 删除标记，0未删除，1删除 */
    @ApiModelProperty(value="删除标记",notes="删除标记，0未删除，1删除")
    private String deleteFlag;

}
